package com.yunban.project.template.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.lab1024.sa.base.ProjectConstants;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2024-11-29
 * @version: 1.0
 */
@Data
@Schema(description = "模板收藏")
@TableName(ProjectConstants.TEMPLATE_TABLE_PREFIX + "template_collect")
public class TemplateCollect implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @Schema(description = "模板组id")
    private long templateGroupId;
    private String templateName;
    @TableLogic
    private boolean deleted = false;
    @Schema(description = "收藏人")
    @TableField(fill = FieldFill.INSERT)
    private long createdBy;
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
